package com.czmh.etc.onlinepubsys.services.impl;

import com.czmh.etc.onlinepubsys.maper.UserFeedbackMapper;
import com.czmh.etc.onlinepubsys.model.UserFeedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.czmh.etc.onlinepubsys.services.UserFeedbackService;



@Service("userFeedbackService")
public class UserFeedbackServiceImpl implements UserFeedbackService {
	@Autowired
	private UserFeedbackMapper userFeedbackMapper;
	
	@Override
	public UserFeedback queryObject(String id){
		return userFeedbackMapper.queryObject(id);
	}
	
	@Override
	public List<UserFeedback> queryList(Map<String, Object> map){
		return userFeedbackMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userFeedbackMapper.queryTotal(map);
	}
	
	@Override
	public int save(UserFeedback userFeedback){
		return userFeedbackMapper.save(userFeedback);
	}

    @Override
    public int saveSelective(UserFeedback userFeedback){
        return userFeedbackMapper.saveSelective(userFeedback);
    }

    @Override
    public int saveList(List<UserFeedback> userFeedbacks){
        return userFeedbackMapper.saveList(userFeedbacks);
    }

	@Override
	public int update(UserFeedback userFeedback){
		return userFeedbackMapper.update(userFeedback);
	}
	
	@Override
	public int delete(String id){
		return userFeedbackMapper.delete(id);
	}
	
	@Override
	public int deleteBatch(String[] ids){
		return userFeedbackMapper.deleteBatch(ids);
	}
	
}
